<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<?php session_start(); 
$_SESSION['views']=1;
?>
<body>

<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="file" id="file" value="Choose a File"/>
<input type="submit"/>
</form>
<?php
if (isset($_SESSION['views']))
{
	$_SESSION['views']=$_SESSION['views']+1;
	echo "You are No.".$_SESSION['views']."guest of my website.";
	return $_SESSION['views'];
}
else
{
	$_SESSION['views']=1;
	echo "you are my first guest!";
	return $_SESSION['views'];
}
?>
</body>
</html>